package com.inkrl.cart.mapper;

import com.jt.common.pojo.CartItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CartMapper {
    List<Map<String, Object>> selectByUserid(String userId);

    void insertCart(@Param("product")String isbn, @Param("count")Integer count, @Param("userId")String userId);

    void updateByItemIdNum(@Param("rid") int rid, @Param("count") int count);

    int deleteByRids(String rid);

    CartItem selectByIsbnandUserId(@Param("product")String isbn, @Param("userId")String phone);

    void updateByIsbnandUserId(@Param("product")String isbn, @Param("count")Integer count, @Param("userId")String phone);
}
